package pl.model.service;

import java.util.List;

import javax.jws.WebService;

import pl.model.domain.Book;
import pl.model.service.impl.SearchServiceImpl.SearchResult;

@WebService
public interface SearchService {

	public final String UNIVERSAL_SEARCH = "universal_search";
	public final String ADVANCED_SEARCH = "advanced_search";

	public List<Book> searchBookByTitle(String title);

	public List<Book> searchBookByDescription(String[] keywords);

	public List<Book> searchBookByTags(String[] tags);

	public Book searchBookById(Integer id);

	// public List<Book> searchBooksByTagsTitleDescription(String keywords);

	public void testDao();

	public List<Book> searchBooksByTagsTitleDescription(String[] keywords);

	public Book searchBookByIdWithProjection(Integer id);

	public List<Book> searchBooksByRank(Integer min, Integer max);

	public SearchResult searchBookUniversal(String search_type,
			String[] search_by, String keywords, String rank_value,
			String sort_by, Integer page_size, Integer page_no);

	

}